/*
 *  Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package com.plian.system.entity.yth.finance;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.NullSerializer;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.plian.system.entity.yth.YthBaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDate;

/**
 * 全面预算管理实体类
 *
 * @author BladeX
 * @since 2023-02-20
 */
@Data
@TableName("finance_budget")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "Budget对象", description = "全面预算管理")
public class Budget extends YthBaseEntity {

	private static final long serialVersionUID = 1L;

	/**
     * 全面预算业务数据类型（0:编制, 1:调整, 2:年报审定 ）
     */
    @ApiModelProperty(value = "全面预算业务数据类型（0:编制, 1:调整, 2:年报审定 ）")
    @JsonSerialize(nullsUsing = NullSerializer.class)
    private Integer budgetType;
    /**
     * 所属年（2000）
     */
    @ApiModelProperty(value = "所属年（2000）")
    @JsonSerialize(nullsUsing = NullSerializer.class)
	@TableField("`year`")
    private Integer year;
    /**
     * 财务报表类型（0:单户表, 1:集团差额表, 2:集团合并表 ）
     */
    @ApiModelProperty(value = "财务报表类型（0:单户表, 1:集团差额表, 2:集团合并表 ）")
    @JsonSerialize(nullsUsing = NullSerializer.class)
    private Integer financeReportType;
    /**
     * 附件ids
     */
    @ApiModelProperty(value = "附件ids")
    private String attachIds;
    /**
     * 填报日期
     */
    @ApiModelProperty(value = "填报日期")
    private LocalDate reportTime;
    /**
     * 填报组织id
     */
    @ApiModelProperty(value = "填报组织id")
    @JsonSerialize(nullsUsing = NullSerializer.class)
    private Long reportOrgId;
    /**
     * 填报组织名称
     */
    @ApiModelProperty(value = "填报组织名称")
    private String reportOrgName;
    /**
     * 填报人员id
     */
    @ApiModelProperty(value = "填报人员id")
    @JsonSerialize(nullsUsing = NullSerializer.class)
    private Long reportUserId;
    /**
     * 填报人员名称
     */
    @ApiModelProperty(value = "填报人员名称")
    private String reportUserName;

    /**
     * 当前流程id
     */
    @ApiModelProperty(value = "当前流程id")
    private String processInstanceId;
    /**
     * 是否生效（完整流程已通过）
     */
    @ApiModelProperty(value = "是否生效（完整流程已通过）")
    private Integer isEnabled;
    /**
     * 当前流程状态id
     */
    @ApiModelProperty(value = "当前流程状态id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long processStatusId;

}
